﻿using UnityEngine;
using System.Collections;

public class CloseDoors : MonoBehaviour {
	public bool open;
	public int doorNumber;

	public void OnTriggerEnter(Collider other) {
		GameObject doors = GameObject.Find("doors" + doorNumber);
		doors.GetComponent<Animator>().SetBool("Open", open);
	}
}
